<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'student.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<link rel="stylesheet" type="text/css" href="style/inf.css">

<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="js/register.js"></script>
<script type="text/javascript" src="js/inf.js"></script>

<!-- 	<link rel="stylesheet" type="text/css" href="style/style.css"> -->

</head>

<body onload="loadDormBdName('#dormBdName');" style="background-color: transparent;">
	<h1>学生管理：</h1>
	楼号：
	<select id="dormBdName" size="1" name="dormName"
		onchange="loadDormNu('#dormNu', '#dormBdName', true);">
	</select> 宿舍号：
	<select id="dormNu" size="1" name="dormNu">
	</select>






	<input type="button" value="查询" onclick="loadStudent(1);"></input>


	<input id="add-Bt" type="button" value="新增"
		onclick="showAddStudentDialog();" />


	<table id="infTable" border="1" bordercolor="#000000" width="661"
		height="28">
		<tr id="ttitle">
			<th scope="col">楼号</th>
			<th scope="col">宿舍号</th>

			<th scope="col">姓名</th>
			<th scope="col">学号</th>
			<th scope="col">性别</th>
			<th scope="col">级别</th>
			<th scope="col">系别</th>
			<th scope="col">专业</th>

			<th scope="col">类别</th>
            <th scope="col">操作</th>
			<!-- 11.22 新增 -->
		</tr>
	</table>
	<%
		/*<table id="infTable" border="1" bordercolor="#000000">
			<tr id="ttitle">
				<th scope="col">楼号</th>
				<th scope="col">宿舍</th>
				<th scope="col">姓名</th>
				<th scope="col">学号</th>
				<th scope="col">性别</th>
				<th scope="col">级别</th>
				<th scope="col">系别</th>
				<th scope="col">专业</th>
				<th scope="col">类别</th>
		 */
	%>
	<!-- 11.22 新增 -->
	<!-- 		</tr> -->
	<!-- 	</table> -->

	<!-- 翻页控件  -->
	<div id="changePage">
		<a href="javascript:void(0)" class="previous">上一页</a> <select
			id="page_select"></select> <a href="javascript:void(0)" class="next">下一页</a>
	</div>
	<div id="blackBackground"></div>
	<!-- 新增和修改水电费对话框  -->
	<div id="newStudent_div" class="addDialog">
		<input type="hidden" id="uid">
		<!-- 	用来存放修改水电费记录的ID -->
		<div id="studentinf_l">
			<p>

				楼号：<select id="dormName_add"
					onchange='loadDormNu("#dormNu_add", "#dormName_add");'></select>
				宿舍号：<select id="dormNu_add"></select>
			</p>
			<p>
				姓名：<input type="text" id="name" />
			</p>
			<p>
				学号： <input type="text" id="studentNu" />


			</p>
			<p>
				手机： <input type="text" id="comment" />
			</p>

		</div>
		<div id="studentInf_r">

			<p>
				系别：<select id="department"
					onchange="loadMajorByDepartment('#major');"></select>
			</p>

			<p>
				性别：<select id="sex">
					<option>男</option>
					<option>女</option>
				</select>专业： <select id="major" onchange="loadGrade('#grade');"></select>


			</p>

			<p>
				级别：<select id="grade"></select>
			</p>

			<input type="button" id="edit_save" class="save" value="保存"
				onclick="editStudent()" /> <input type="button" id="add_save"
				class="save" value="保存" onclick="addStudent()" /> <input
				type="button" id="close" value="关闭" onclick="hideAddStudentInf();" />
		</div>
	</div>

</body>
</html>
